-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Support analyzing context receivers #1475
base: main
Are you sure you want to change the base?
Conversation
… 1.9 but should be final in Kotlin 2.0)
Question for opinions: A context receiver on the class level applies to the constructors, but is written at the class level. So should the context receivers be exposed in the class, or via each constructor as they would be on other member functions or top-level functions? |
Question for opinions: A context receiver can be on functions, methods, classes. Should they therefore be available from |
…icitly affect all constructors.
Question to resolve: Does https://github.com/tschuchortdev/kotlin-compile-testing have a way to set freeArgs or |
Hello, any feedback on this approach? Nearly stable release for feature in Kotlin, and this is probably pretty close to what is needed. |
I am just going to poke this because I have been waiting for this for so long ... Any success with this? or is it still in experimental? |
Add analysis for context receivers (experimental up thought Kotlin 1.9 but should be final in Kotlin 2.0)
This basically clones code for extension receivers and adds support for context receivers in the same classes and interfaces. The testing is mirroring the same level of support for extension receivers (which is minimally covered in tests).
This is to address issue #1136
TODO: